import axios from "axios";
export let Boutiquelist =()=>{
    return (dispatch)=>{
       axios.get("/Boutiquelist").then(res=>{
           dispatch({
               type:"Boutiquelist",
               payload:res.data
           })
       })
    }
}
export let Freedatalist =(data)=>{
    return (dispatch)=>{
       axios.get("/Freedatalist").then(res=>{
           dispatch({
               type:"Freedatalist",
               payload:res.data,
               payload1:data
           })
       })
    }
}
export let getfenlei = ()=>{
    return (dispatch)=>{
        axios.get("/api/fenleilist").then(res=>{
            dispatch({
                type:"getfenlei",
                payload:res.data,
            })
        })
     }
}